package org.ellwood.core.common.event;

import org.springframework.context.ApplicationEvent;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.common.event
 * @ClassName: BaseEvent
 * @Description: // 基础事件
 * @Author: Ellwood
 * @CreateDate: 2024/6/18 - 上午11:06
 * @Version: V1.0.0
 */
public abstract class BaseEvent<T> extends ApplicationEvent {

    private final T payload;

    public BaseEvent(Object source, T payload) {
        super(source);
        this.payload = payload;
    }

    public T getPayload() {
        return payload;
    }

}
